﻿<Window x:Class="Snap.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:tb="http://www.hardcodet.net/taskbar"
        Title="Snap Configuration" Height="350" Width="525" WindowStyle="SingleBorderWindow" WindowStartupLocation="CenterScreen" SizeToContent="Manual" ResizeMode="CanMinimize" AllowDrop="False" AllowsTransparency="False" Icon="/Snap;component/Images/Camera.ico" Background="#FFF9F9F9">
    
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="376*" />
            <ColumnDefinition Width="127*" />
        </Grid.ColumnDefinitions>

        <tb:TaskbarIcon x:Name="MyNotifyIcon" IconSource="/Images/Camera.ico" ToolTipText="hello world">
            <tb:TaskbarIcon.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Configure" Click="MenuItem_Configure_Click" />
                    <MenuItem Header="Exit" Click="MenuItem_Exit_Click" />
                </ContextMenu>
            </tb:TaskbarIcon.ContextMenu>
        </tb:TaskbarIcon>
        <TabControl Height="Auto" HorizontalAlignment="Stretch" Name="tabControl1" VerticalAlignment="Stretch" Width="Auto" Grid.ColumnSpan="2">
            <TabItem Header="Program" Name="TabProgram">
                <Grid>
                    <CheckBox Content="Automatically run this program at startup" Height="16" HorizontalAlignment="Left" Margin="6,11,0,0" Name="checkBox1" VerticalAlignment="Top" IsEnabled="True" Visibility="Hidden" />
                </Grid>
            </TabItem>
            <TabItem Header="Capture" Name="TabCapture">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="30*" />
                        <ColumnDefinition Width="463*" />
                    </Grid.ColumnDefinitions>
                    <Label Content="Image Format:" Height="28" HorizontalAlignment="Left" Margin="6,11,0,0" Name="label1" VerticalAlignment="Top" Grid.ColumnSpan="2" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="68,14,0,0" Name="Setting_ImageFormat" VerticalAlignment="Top" Width="63" SelectedIndex="0" Grid.Column="1">
                        <ComboBoxItem Content="PNG" />
                        <ComboBoxItem Content="JPEG" />
                    </ComboBox>
                    <Label Content="Image Quality (1-100):" Height="28" HorizontalAlignment="Left" Margin="6,45,0,0" Name="label2" VerticalAlignment="Top" Grid.ColumnSpan="2" />
                    <Slider Height="23" HorizontalAlignment="Left" Margin="110,45,0,0" Name="Setting_ImageQuality" VerticalAlignment="Top" Width="347" TickFrequency="10" TickPlacement="BottomRight" SmallChange="10" SelectionEnd="0" Maximum="100" Value="100" Grid.Column="1" />
                    <CheckBox Content="Also save all my captures to" Height="16" HorizontalAlignment="Left" Margin="11,79,0,0" Name="Setting_DoSaveCaptures" VerticalAlignment="Top" Grid.ColumnSpan="2" IsChecked="False" />
                    <TextBox Height="19" HorizontalAlignment="Left" Margin="26,103,0,0" Name="Setting_CaptureDirectory" VerticalAlignment="Top" Width="380" IsEnabled="{Binding ElementName=Setting_DoSaveCaptures, Path=IsChecked}" Grid.ColumnSpan="2" Text="" />
                    <Button Content="Browse..." Height="23" HorizontalAlignment="Right" Margin="0,100,6,0" Name="Setting_BrowseCaptureDirectory" VerticalAlignment="Top" Width="75" IsEnabled="{Binding ElementName=Setting_DoSaveCaptures, Path=IsChecked}" Grid.Column="1" Click="Setting_BrowseCaptureDirectory_Click" />
                </Grid>
            </TabItem>
            <TabItem Header="Processing" Name="TabProcessing">
                <Grid />
            </TabItem>
        </TabControl>
    </Grid>
</Window>
